package com.hghivln.pojo.dto;

import com.hghivln.pojo.domain.SimpleUser;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
    * 用来接受修改的排班信息表
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SchedulingFormDto implements Serializable{

    private SimpleUser simpleUser;

    @NotBlank(message = "日期不能为空")
    private String beginDate;

    @NotEmpty
    private List<SchedulingData> data;

    @Data
    public static class SchedulingData implements Serializable {

        private Long userId;

        private Long deptId;

        private String subsectionType;  // 排班时间段 早中晚

        private Collection<String> schedulingType; // 排班类型 急诊/门诊
    }

}